<script type="text/javascript">
$(function(){
	$.post("blackList/showBlackListGen",showBlackListGen,"json")
});
function showBlackListGen(json){
	if(json.statusCode==DWZ.statusCode.error){
		navTabAjaxDone(json)
	}else{
		var content="";
		var numPerPage=json.numPerPage;
		var currentPage=json.currentPage;
		var totalCount=json.totalCount;
		var pageCount=json.pageCount
		var list=json.list;
		//alert(numPerPage+","+currentPage+","+totalCount);
		if(list.length==0){
			content+="<tr><td colspan='7' align='center' >未查询到数据</td></tr>"
		}else{
			for(var i=0;i<list.length;i++){
				var value=list[i].citizenCardNo;
				var relieveDate="",appType=""
				if(list[i].relieveDate!=null){
					relieveDate=getDate(list[i].relieveDate);
				}
				if(list[i].appType!=null){
					appType=getDate(list[i].appType);
				}
				//20181207 hgl 修改以下1行
				content+="<tr onmouseover='moveoverMouse(this)' onmouseout='moveoutMouse(this)' align='center'><td>"+
				list[i].citizenCardNo+"</td><td>"+list[i].customerName+"</td><td>"+
				list[i].paperNo+"</td><td>"+list[i].blreasonName+"</td><td>"+getDate(list[i].availDate)+"</td><td>"+
				relieveDate+"</td><td>"+list[i].blackModeName+"</td><td>"+list[i].curStatusName+"</td><td>"+
				appType+"</td><td>"+list[i].releaseSysName+"</td></tr>"
			}
			
		}
		$("#tbodyBlackList").html(content);
		$("input[name='numPerPage']").val(numPerPage);
		$("input[name='pageNum']").val(currentPage); 
//		$("input[name='pageCount']").val(pageCount);
		$("#totalCountByBlackList").text("条，共"+totalCount+"条");
//		var pagination="<a href='#' onclick="+"previous($('#showBlackListGen'),showBlackListGen) id='previous' >上一页  </a><a href='#' onclick="+"next($('#showBlackListGen'),showBlackListGen) id='next'> 下一页</a><span>当前第"+currentPage+"页，共"+pageCount+"页</span>";
//		$("#paginationByBlackList").html(pagination);
		$("#paginationByBlackList").addClass("pagination").attr("targetType","navTab").attr("totalCount",totalCount).attr("numPerPage",numPerPage).attr("pageNumShown","10").attr("currentPage",currentPage).attr("rel","tbodyBlackList").attr("callback","showBlackListGen");
		$("div.pagination").each(function(){
			var $this = $(this);
			$this.pagination({
				targetType:"navTab",
				rel:"tbodyBlackList",
				totalCount:totalCount,
				numPerPage:numPerPage,
				pageNumShown:10,
				currentPage:currentPage,
				callback:showBlackListGen
			});
		});
		var $p = $("#ByBlackList");
		initUI($p);
	}
	
}
	
</script>

<div class="pageHeader ">
	<form id="pagerForm" method="post" action="blackList/showBlackListGen"
		class="pageForm required-validate"
		onsubmit="return validateCallback(this,showBlackListGen);">
		<input type="hidden" name="pageNum" value="" /> <input type="hidden"
			name="numPerPage" value="" />
		<!-- <input type="hidden" name="pageCount" value="" /> -->
		<div class="searchBar">
			<!-- <table class="searchContent">
			<tr>
				<td style="text-align:left"><label>姓名：</label></td>
				<td><input  name="customerName" class="" type="text" size="30"  /></td>
			
				<td style="text-align:left"><label>市民卡号：</label></td>
				<td><input  name="citizenCardNo" class="" type="text" size="30"  /></td>
			</tr>
			<tr>
				<td><label>进黑名单原因：</label></td>
				<td style="text-align:left"><select name="blReason">
					<option value="">请选择</option>
					<option value="01">口头挂失</option>
					<option value="02">正式挂失 </option>
					<option value="11">换卡注销</option>
					<option value="12">退卡注销</option>
					<option value="13">补卡注销</option>
					<option value="21">应用锁定</option>
					<option value="31">手工生成</option>
				</select></td>
			
				<td style="text-align:left"><label>状态：</label></td>
				<td style="text-align:left"><select name="curStatus">
					<option value="">请选择</option>
					<option value="1">生效　　　</option>
					<option value="2">解除　　　</option>
				</select></td>
			</tr>
			<tr>
				<td><label>生效日期(止)：</label></td>
				<td><input  name="availDateStart" class="date" type="text" size="30" /></td>
			
				<td><label>生效日期(止)：</label></td>
				<td><input  name="availDateEnd" class="date" type="text" size="30" /></td>
			</tr>
			<tr>
				<td><label>解除日期(止)：</label></td>
				<td><input  name="relieveDateStart" class="date" type="text" size="30" /></td>
			
				<td><label>解除日期(止)：</label></td>
				<td><input  name="relieveDateEnd" class="date" type="text" size="30" /></td>
			</tr>
			</table> -->
			<div class="row" style="padding: 0 10px;">
				<div class="col-md-4 col-sm-12">
					<p>
						<label>姓名：</label> <input name="customerName" class="validName" type="text" size="11" />
					</p>
				</div>
				<div class="col-md-4 col-sm-12">
					<p>
						<label>进黑名单原因：</label><select name="blReason">
							<option value="">请选择……</option>
							<option value="01">口头挂失</option>
							<option value="02">正式挂失</option>
							<option value="11">换卡注销</option>
							<option value="12">退卡注销</option>
							<option value="13">补卡注销</option>
							<option value="21">应用锁定</option>
							<option value="31">手工生成</option>
						</select>
					</p>
				</div>
				<div class="col-md-4 col-sm-12">
					<p>
						<label>当前状态：</label> <select name="curStatus">
							<option value="">请选择……</option>
							<option value="1">生效</option>
							<option value="2">解除</option>
						</select>
					</p>
				</div>


			</div>
			<div class="row" style="padding: 0 10px;">
				<div class="col-md-4 col-sm-12">
					<p>
						<label>市民卡号：</label> <input name="citizenCardNo" class="validCitizenCardNo"
							type="text" size="11" />
					</p>
				</div>

				<div class="col-md-4 col-sm-12">
					<p>
						<label>生效日期(起)：</label><input name="availDateStart" class="date validDateFrom"
							type="text" size="11" />
					</p>
				</div>
				<div class="col-md-4 col-sm-12">
					<p>
						<label>生效日期(止)：</label><input name="availDateEnd" class="date validDateTo"
							type="text" size="11" />
					</p>
				</div>
			</div>
			<div class="row" style="padding: 0 10px;">
				<div class="col-md-4 col-sm-12">
					<p>
						<label>解除日期(起)：</label><input name="relieveDateStart" class="date validDateFrom"
							type="text" size="11" />
					</p>
				</div>
				<div class="col-md-4 col-sm-12">
					<p>
						<label>解除日期(止)：</label><input name="relieveDateEnd" class="date validDateTo"
							type="text" size="11" />
					</p>
				</div>
				<div class="col-md-4 col-sm-12"></div>
			</div>
			<div class="subBar">
				<ul>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button type="submit" onclick="initCurrentPage()">查询</button>
							</div>
						</div>
					</li>
				</ul>
			</div>
		</div>
	</form>
</div>

<form method="post" action="" class="pageForm required-validate"
	onsubmit="return commitFormExportTaskSingle(this);">
	<div class="pageContent">
		<div class="panelBar">
			<ul class="toolBar">
				<!-- <li><a class="add" href="" target="dialog" rel=""><span>新增</span></a></li>
				<li><a class="edit" onclick=""><span>解除</span></a></li> -->
			</ul>
		</div>
		<div id="ByBlackList">
			<table class="table" width="100%" layoutH="298">
				<thead>
					<tr align="center">
						<!-- 20181207 hgl 注释以下三行 -->
						<!-- <th width="2%"><input type="checkbox" name="" -->
							<!-- group="blackListGen" onclick="checkAllCss(this)" -->
							<!-- class="checkboxCtrl"></th>  -->
						<th width="15%" class="asc"
							onclick="order($('#tbodySingleTask'),5)">市民卡号</th>
						<th width="10%">姓名</th>
						<th width="15%">证件号码</th>
						<th width="10%">进黑名单原因</th>
						<th width="8%">生效日期</th>
						<th width="8%">解除日期</th>
						<th width="8%">置黑方式</th>
						<th width="8%">当前状态</th>
						<th width="8%">置黑应用类型</th>
						<th width="8%">发布系统</th>
					</tr>
				</thead>
				<tbody id="tbodyBlackList">

				</tbody>
			</table>
		</div>
		<!-- <div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select id="numPerPageByBlackList" name="numPerPage" onchange="paging(this,$('#showBlackListGen'),showBlackListGen)">
				<option value="20">20</option>
				<option value="30">30</option>
				<option value="50">50</option>
				<option value="100">100</option>
			</select>
			<span id="totalCountByBlackList"></span>
		</div>
			<div id="paginationByBlackList" class="pagination1"></div>
	</div> -->
		<div class="panelBar">
			<div class="pages">
				<span>显示</span> <select class="combox" name="numPerPage"
					onchange="navTabPageBreak({numPerPage:this.value},'tbodyBlackList',showBlackListGen)">
					<option value="20">20</option>
					<option value="50">50</option>
					<option value="100">100</option>
					<option value="200">200</option>
				</select> <span id="totalCountByBlackList">条，共${totalCount}条</span>
			</div>

			<div callback='showBlackListGen' id="paginationByBlackList"
				rel="tbodyBlackList" class="pagination" targetType="navTab"
				totalCount="200" numPerPage="5" pageNumShown="5" currentPage="1"></div>

		</div>

	</div>
</form>


